// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取 签到推广 POST */
export async function getPromotionProjectPage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<PromotionData.Project[]>>(
    '/promotion/project/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取 签到推广 项目包 POST */
export async function getPromotionProject(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<PromotionData.ProjectDetails>>(
    '/promotion/project/get',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 保存 签到推广 POST */
export async function savePromotionProject(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/promotion/project/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 推送 签到推广 POST */
export async function sendPromotionProjectTemplateMessage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/promotion/project/sendTemplateMessage', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 签到推广 获取 指派单位  POST */
export async function savePromotionProjectTreeAssignOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/promotion/project/save/treeAssignOrganization',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 删除 签到推广 POST */
export async function deletePromotionProject(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/promotion/project/delete', {
    method: 'POST',
    data: options || {},
  });
}

/** 更新 签到推广 状态 POST */
export async function updatePromotionProjectState(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/promotion/project/update/state', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 公众号文章信息 POST */
export async function queryGongzhonghaoArticle(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<PromotionData.TaskQueryGongzhonghaoArticleVo>>(
    '/promotion/task/queryGongzhonghaoArticle',
    {
      method: 'POST',
      data: options || {},
    },
  );
}
